<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网站后台管理系统HTML模板--模板之家 www.cssmoban.com</title>
<link href="{$smarty.const.ADMIN_CSS_PATH}style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="{$smarty.const.ADMIN_JS_PATH}jquery.js"></script>

<script type="text/javascript">
$(document).ready(function(){
$(".click").click(function(){
$(".tip").fadeIn(200);
});
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});

});
function del(){ 
if(!confirm("确认要删除？")){ 
window.event.returnValue = false; 
} 
}
</script>


</head>


<body>

	<div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="#">首页</a></li>
    <li><a href="#">权限管理</a></li>
    <li><a href="#">权限列表</a></li>
    </ul>
    </div>
    
    <div class="rightinfo">
    
    <div class="tools">
    
    	<ul class="toolbar">
        <li class="add"><a href="{$smarty.const.__CONTROLLER__}/addauth"><span><img src="{$smarty.const.ADMIN_IMAGES_PATH}t01.png" /></span>添加</a></li>
        <!--<li class="click"><span><img src="{$smarty.const.ADMIN_IMAGES_PATH}t02.png" /></span>修改</li>
        <li><span><img src="{$smarty.const.ADMIN_IMAGES_PATH}t03.png" /></span>删除</li>
        <li><span><img src="{$smarty.const.ADMIN_IMAGES_PATH}t04.png" /></span>统计</li>-->
        </ul>
        
        
        <ul class="toolbar1">
        <li><span><img src="{$smarty.const.ADMIN_IMAGES_PATH}t05.png" /></span>设置</li>
        </ul>
    
    </div>
    
    
    <table class="tablelist">
    	<thead>
    	<tr>
        <th>编号<i class="sort"><img src="{$smarty.const.ADMIN_IMAGES_PATH}px.gif" /></i></th>
        <th>权限名称</th>
        <th>父级权限编号</th>
        <th>控制器</th>
        <th>操作方法</th>
        <th>全路径</th>
        <th>权限等级</th>
        <th>操作</th>
        </tr>
        </thead>
        <tbody>
        	
        {foreach $auth_info as $k=>$v}
        <tr>
        <td>{$v.id}</td>
        <td>{$v.name|indent:$vv.level:'--/'}</td>
        <td>{$v.pid}</td>
        <td>{$v.controller}</td>
        <td>{$v.action}</td>
        <td>{$v.path}</td>
        <td>{$v.level}</td>
        <td style="text-align: center;"><a href="{$smarty.const.__CONTROLLER__}/updateauth/id/{$v.id}" class="tablelink">修改权限</a>&nbsp;&nbsp;&nbsp;
        <a href="{$smarty.const.__CONTROLLER__}/deleteauth/id/{$v.id}" data-href="{$smarty.const.__CONTROLLER__}/deleteauth/id/{$v.id}" class="tablelink" onclick="return del()"> 删除权限</a></td>
        </tr> 
        {/foreach}
                
        </tbody>
    </table>
    
   
    <div class="pagin">
    	<div class="message">共<i class="blue">{$total}</i>条记录，每页显示&nbsp;<i class="blue">6&nbsp;</i>条</div>
        <ul class="paginList">
        	{$pagelist}
        </ul>
    </div>
    
    
    <div class="tip">
    	<div class="tiptop"><span>提示信息</span><a></a></div>
        
      <div class="tipinfo">
        <span><img src="{$smarty.const.ADMIN_IMAGES_PATH}ticon.png" /></span>
        <div class="tipright">
        <p>是否确认删除该权限？</p>
        <cite>如果是请点击确定按钮 ，否则请点取消。</cite>
        </div>
        </div>
        
        <div class="tipbtn">
        <input name="" type="button"  class="sure" value="确定" />&nbsp;
        <input name="" type="button"  class="cancel" value="取消" />
        </div>
    
    </div>
    
    
    
    
    </div>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
</body>
</html>
